import cv2
# 图片剪裁

for index in range(0, 100):
    fileName = "./data/"+str(index)+".png"
    img = cv2.imread(fileName)
    img_rio = img[0:190, 0:190]
    new_img=cv2.resize(img_rio, (128, 128))
    fileNameNew = "./new_data/"+str(index)+".png"
    cv2.imwrite(fileNameNew, new_img)


